<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>1-axios概述与基本用法</title>
    <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
    <script src="https://unpkg.com/axios/dist/axios.min.js"></script>

    <style></style>
  </head>
  <body>
    <div id="app"></div>
    <script>
      axios.get('http://localhost:3000/addData').then(function (res) {
        console.log(res);
        // Object { data: "Hello axios", status: 200, statusText: "OK", headers: {…}, config: {…}, request: XMLHttpRequest }
        console.log(res.data); // Hello axios
      });
    </script>
  </body>
</html>
